package chapter1014;

import chapter1014.hero.Hero;
import chapter1014.item.Item;

import java.util.Scanner;

public class GameSys {
    public Hero myhero;
    public Item[] items;

    public GameSys(int op) {
        myhero = new Hero();
        items = new Item[10];

        if(op == 1){
//            myhero.name = "盖伦";
        }else{
//            myhero.name = "提莫";
        }

        for(int i = 0; i < items.length; i++) {
            items[i] = new Item();
            int x = (int)(Math.random()*3);

            switch (x){
                case 0:
                    items[i] = new Item("草鞋",300);
                    break;
                case 1:
                    items[i] = new Item("长剑",350);
                    break;
                case 2:
                    items[i] = new Item("血药",50);
                    break;
            }

        }
    }
}
